<template>
    <div class="slide-window">
        <el-carousel height="100px" direction="vertical" indicator-position="none" :autoplay="true">
            <el-carousel-item v-for="item in 4" :key="item">
                <div class="left-part">
                    <p>
                        如何评价《黑神话：悟空》这款游戏？它到底好不好玩？
                    </p>
                </div>
                <div class="right-part">
                    <img src="https://pic1.zhimg.com/v2-ff421359c5acc8ecb3f00269aafa9d56_r.jpg?source=1def8aca" alt="无法加载图片"/>
                </div>
            </el-carousel-item>
        </el-carousel>
    </div>
</template>

<script setup lang="ts">

import { onMounted, ref, onUnmounted } from 'vue'


</script>

<style scoped>
.slide-window {
    width: 100%;
    height: 120px;
    background-color: rgb(255, 255, 255);
    padding: 10px;
    overflow: hidden;


    .el-carousel__item {
        cursor: pointer;
        display: flex;
        color: red;
        border-radius: 5px;
        background-color: #f8f9fa;

        .left-part {
            width: 50%;
            height: 100%;
            font-size: 15px;
            color: #7d7373;
            white-space: wrap;
            text-align: left;
            display: flex;
            align-items: center;
            padding: 3px;
        }

        .right-part {
            padding: 3px;
            width: 50%;
            display: flex;
            align-items: center;

            img {
                width: 100%;
                height: auto;
            }
        }
    }
}
</style>